<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>欢迎登录汽车租赁网</title>
<link type="text/css" rel="stylesheet" href="css/common.css">
<style type="text/css">
	body{
		background-image: url("images/backgroud.jpg");
		overflow: hidden;
	}
	.login-div{
		background: rgba(255, 255, 255, 0.9);
		width: 500px;
		box-sizing: border-box;
		margin: 0px auto;
		padding: 20px 40px;
	}
	.login-title{
		text-align: center;
		font-size: 22px;
	}
	.form-item{
		box-sizing: border-box;
		width: 100%;
		height: 35px;
		margin-top: 15px;
		padding: 0px 5px;
	}
</style>
</head>
<body>
	<div style="height: 260px;"></div>
	<div class="login-div">
		<div class="login-title">欢迎登录汽车租赁网</div>
		<br>
		<form action="LoginServlet" method="post">
			<input class="form-item" name="username" type="text" placeholder="用户名">
			<input class="form-item" name="password" type="password" placeholder="密码">
			<div style="margin-top: 15px;">
				<input type="radio" name="userType" value="u" checked="checked"> 顾客
				<input type="radio" name="userType" value="a"> 管理员
			</div>
			<span style="color: red">
				<%
					if (request.getParameter("error") != null && request.getParameter("error").equals("0")) {
						out.print("用户名或密码错误");
					} else {
						
					}
				%>
			</span>
			<button class="form-item">登录</button>
		</form>
		<br>
		<a href="register.jsp">没有账号 快去注册一个吧</a>
	</div>
</body>
</html>